//
//  Bool+Global.swift
//  DF_Student
//
//  Created by 刘盖 on 2023/12/9.
//  Copyright © 2023 DFJGED. All rights reserved.
//

import UIKit

public extension Bool {
    static var isIPad: Bool {
        get {
            return UI_USER_INTERFACE_IDIOM() == .pad
        }
    }
    
    static var isIPhone: Bool {
        get {
            return UI_USER_INTERFACE_IDIOM() == .phone
        }
    }
    
    static var isIPhoneX: Bool {
        get {
            return self.isIPhone && CGFloat.bottom_safe_height>1
        }
    }
}
